package com.oscar.web.dao;

import com.oscar.web.domain.RateMoreRecentlyBooks;
import com.oscar.web.domain.Streamrecs;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.Repository;

/**
 * 定义一个接口访问数据库表(和数据库表打交道)
 */

public interface StreamrecsRepository extends Repository<Streamrecs, Integer> {

    //返回值 方法名 方法参数
    public Page<Streamrecs> findAll(Pageable pageable);

    public Streamrecs findByUserid(int userid);

//    public Streamrecs findByUserid(int userid);

}
